//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __I2S_H
#define __I2S_H


// I2S

#define GP028_I2SBITCLK             (1<<28)      // Alt-1 OUT
#define GP029_I2SDATAIN             (1<<29)      // Alt-2 IN
#define GP030_I2SDATAOUT            (1<<30)      // Alt-1 OUT
#define GP031_I2SSYNC               (1<<31)      // Alt-1 OUT
#define GP113_I2SSYSCLK             (1<<17)     // Alt-1 OUT

void I2S_PrePlay(void);
void I2S_AftPlay(void);
void I2S_PlayDebug(unsigned long  data, unsigned long  dwNum);
void I2S_Play(unsigned long * pData, unsigned long  dwNum);
void I2S_PreRecord(void);
void I2S_AftRecord(void);
unsigned int I2S_Record(unsigned long * pData);

#endif
